public class lightoncommand implements Command
{
        light light;

        public lightoncommand(light l)
        {
                light = l;
        }

        public void execute()
        {
                light.on();
        }
}
